<h1>Grades List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Title</th>
      <th>Grade</th>
      <th>Master teacher</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($grades as $grade): ?>
    <tr>
      <td><a href="<?php echo url_for('grade/show?id='.$grade->getId()) ?>"><?php echo $grade->getId() ?></a></td>
      <td><?php echo $grade->getTitle() ?></td>
      <td><?php echo $grade->getGrade() ?></td>
      <td><?php echo $grade->getMasterTeacherId() ?></td>
      <td><?php echo $grade->getCreatedAt() ?></td>
      <td><?php echo $grade->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('grade/new') ?>">New</a>
